package com.aptech.jboa.service.impl;

import java.util.List;

import com.aptech.jboa.dao.CommonDao;
import com.aptech.jboa.pojo.Function;
import com.aptech.jboa.pojo.Module;
import com.aptech.jboa.service.NavBiz;

public class NavBizImpl implements NavBiz {
	
	private CommonDao commonDao;

	public void setCommonDao(CommonDao commonDao) {
		this.commonDao = commonDao;
	}

	public List<Function> findAll(Long id) {
		
		String hql = "from Function where id  = ?";
		  
		return commonDao.findByCondition(hql,new Object[]{id});
	}
	
	

}
